how to check if a number is positive or negative in python